package SimpleFactoryPattern;

public class SimpleFactory {
	public static Product createProduct(String type) {
		if (type.equals("A")) {
			return new ProductA();

		} else {
			return new ProductB();
		}

	}
}
